package educar.models;

public class SessionAlumno {
	private static Alumno currentAlumno = null;
	private static SessionAlumno sessionAlumno;
	
	public synchronized static SessionAlumno getSessionAlumno(){
		if (sessionAlumno == null)
			sessionAlumno = new SessionAlumno();
		return sessionAlumno;
	}

	public SessionAlumno() {
		SessionAlumno.setCurrentAlumno(null);
	}

	public static Alumno getCurrentAlumno() {
		return currentAlumno;
	}

	public static void setCurrentAlumno(Alumno currentAlumno) {
		SessionAlumno.currentAlumno = currentAlumno;
	}

	
}
